how to calculate simple interest in C